check and uncheck all checkbox in javascript